package com.gepengjun.lims.service;

import com.gepengjun.lims.entity.Permission;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jun
 * @since 2018-08-19
 */
public interface PermissionService extends IService<Permission> {


    List<Permission> findTopMenus();

    List<Permission> findLeftMenus(Long parentId);

    List<Permission> findAllAvaiablePermissions();

    List<String> findPermissionStrsByList(List<Long> permissionIds);

    List<Permission> findByUserId(Long userId);

    Boolean roleAuthorize(Long roleId,String permissionIds);
}
